package com.ssy.lingxi.order.config;

import com.ssy.lingxi.order.service.base.IOrderDataInitService;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * 服务启动后，执行数据初始化
 * @author 万宁
 * @version 2.0.0
 * @date 2021-06-15
 */
@Configuration
@DependsOn("languageHolder")
public class OrderServiceInitConfig {
    @Resource
    private IOrderDataInitService orderDataInitService;

    @PostConstruct
    public void initOrderService() {
        //初始化订单服务数据
        orderDataInitService.initOrderServiceData();
    }
}
